.class Llt/noframe/gpsfarmguide/views/FragmentGpsSettings$2;
.super Ljava/lang/Object;
.source "FragmentGpsSettings.java"

# interfaces
.implements Llt/farmis/libraries/externalgps/ExternalGPSThread$LocationUpdateListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;)V
    .locals 0

    .line 116
    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings$2;->this$0:Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onLocationUpdate(Llt/farmis/libraries/externalgps/GPSLocation;)V
    .locals 1

    .line 119
    sget-object v0, Llt/farmis/libraries/externalgps/ExternalGPS;->Companion:Llt/farmis/libraries/externalgps/ExternalGPS$Companion;

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS$Companion;->getInstance()Llt/farmis/libraries/externalgps/ExternalGPS;

    move-result-object v0

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS;->getGpsThread()Llt/farmis/libraries/externalgps/ExternalGPSThread;

    move-result-object v0

    if-eqz v0, :cond_0

    sget-object v0, Llt/farmis/libraries/externalgps/ExternalGPS;->Companion:Llt/farmis/libraries/externalgps/ExternalGPS$Companion;

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS$Companion;->getInstance()Llt/farmis/libraries/externalgps/ExternalGPS;

    move-result-object v0

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS;->getGpsThread()Llt/farmis/libraries/externalgps/ExternalGPSThread;

    move-result-object v0

    .line 120
    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPSThread;->getMDeviceProvider()Llt/farmis/libraries/externalgps/providers/NMEADeviceManager;

    move-result-object v0

    instance-of v0, v0, Llt/farmis/libraries/externalgps/providers/usb/NmeaUSBDevice;

    if-eqz v0, :cond_0

    .line 121
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings$2;->this$0:Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->access$100(Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;)Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;

    move-result-object v0

    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->onLocationUpdate(Llt/farmis/libraries/externalgps/GPSLocation;)V

    .line 124
    :cond_0
    sget-object v0, Llt/farmis/libraries/externalgps/ExternalGPS;->Companion:Llt/farmis/libraries/externalgps/ExternalGPS$Companion;

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS$Companion;->getInstance()Llt/farmis/libraries/externalgps/ExternalGPS;

    move-result-object v0

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS;->getGpsThread()Llt/farmis/libraries/externalgps/ExternalGPSThread;

    move-result-object v0

    if-eqz v0, :cond_1

    sget-object v0, Llt/farmis/libraries/externalgps/ExternalGPS;->Companion:Llt/farmis/libraries/externalgps/ExternalGPS$Companion;

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS$Companion;->getInstance()Llt/farmis/libraries/externalgps/ExternalGPS;

    move-result-object v0

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPS;->getGpsThread()Llt/farmis/libraries/externalgps/ExternalGPSThread;

    move-result-object v0

    .line 125
    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPSThread;->getMDeviceProvider()Llt/farmis/libraries/externalgps/providers/NMEADeviceManager;

    move-result-object v0

    instance-of v0, v0, Llt/farmis/libraries/externalgps/providers/bluetooth/NmeaBluetoothDevice;

    if-eqz v0, :cond_1

    .line 126
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings$2;->this$0:Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;->access$200(Llt/noframe/gpsfarmguide/views/FragmentGpsSettings;)Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;

    move-result-object v0

    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/widgets/gps/GPSStatusView;->onLocationUpdate(Llt/farmis/libraries/externalgps/GPSLocation;)V

    :cond_1
    return-void
.end method
